package com.slz3.business.module.systemManagement.sysRoleMenu.repository;

import com.slz3.business.module.systemManagement.sysRoleMenu.domain.SysRoleMenu;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.UUID;

public interface SysRoleMenuRepository extends JpaRepository<SysRoleMenu, UUID>, JpaSpecificationExecutor<SysRoleMenu>, SysRoleMenuCustomizedRepository {

    int deleteByRoleUuidAndMenuUuid(UUID roleUuid, UUID menuUuid);

    SysRoleMenu queryFirstByRoleUuidAndMenuUuid(UUID roleUuid, UUID menuUuid);
}
